<@pp.dropOutputFile />
<#list doc.beans.bean as bn>
<@pp.changeOutputFile name=bn.beanName?cap_first+"ManagerImpl.java" />

package ${doc.beans.@domain}.${doc.beans.@company}.${doc.beans.@project}.service.impl;
 
import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import ${doc.beans.@domain}.${doc.beans.@company}.${doc.beans.@project}.dao.${bn.beanName?cap_first}Dao;
import ${doc.beans.@domain}.${doc.beans.@company}.${doc.beans.@project}.service.${bn.beanName?cap_first}Manager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class ${bn.beanName?cap_first}ManagerImpl extends BaseManagerImpl implements ${bn.beanName?cap_first}Manager {
        private ${bn.beanName?cap_first}Dao ${bn.beanName}Dao;

	
	public CommonBean create${bn.beanName?cap_first}(){
                return ${bn.beanName}Dao.create${bn.beanName?cap_first}();		
	}
	
/*
	public CommonBean find${bn.beanName?cap_first}s(String refid) {
                return ${bn.beanName}Dao.find${bn.beanName?cap_first}s(refid);
       }
*/
	public CommonBean find${bn.beanName?cap_first}ById(String id){
                return ${bn.beanName}Dao.find${bn.beanName?cap_first}ById(id);
       }	
	public CommonBean findAll${bn.beanName?cap_first}s() {
                return ${bn.beanName}Dao.findAll${bn.beanName?cap_first}s();
       }
	public void insert${bn.beanName?cap_first}(CommonBean ${bn.beanName}Bean){
               ${bn.beanName}Dao.insert${bn.beanName?cap_first}(${bn.beanName}Bean);
	}
	public void update${bn.beanName?cap_first}(CommonBean ${bn.beanName}Bean){
               ${bn.beanName}Dao.update${bn.beanName?cap_first}(${bn.beanName}Bean);
	}
	
	public ${bn.beanName?cap_first}Dao get${bn.beanName?cap_first}Dao(){
		return ${bn.beanName}Dao;
        }	
        
  public void set${bn.beanName?cap_first}Dao(${bn.beanName?cap_first}Dao ${bn.beanName}Dao){
          this.${bn.beanName}Dao=${bn.beanName}Dao;	
  }        		
}

</#list>
